import { herinRequist } from "../http.js";
// 人员管理
const Person = {
	getPersonPassCount(type) {
		return herinRequist({ url: '/app/person-pass-count', method: 'GET', data: { type } });
	},
	getPersonPassList(data) {
		return herinRequist({ url: '/app/person-pass-list', method: 'GET', data });
	},
	getPersonPassDetail(id) {
		return herinRequist({ url: '/app/person-pass-detail', method: 'GET', data: { id } });
	},
	getPersonWhiteList(data) {
		return herinRequist({ url: '/app/person-white-list', method: 'GET', data });
	},
	getPersonBlackList(data) {
		return herinRequist({ url: '/app/person-black-list', method: 'GET', data });
	},
	getPersonListInfo(id) {
		return herinRequist({ url: '/app/person-blackwhite-detail', method: 'GET', data: { id } });
	},
	getPersonCharts(type) {
		return herinRequist({ url: '/app/person-chart', method: 'GET', data: { type } });
	}
};

export default Person;
